package com.study.constant;

/**
 * @author mengxj
 */
public class Test {

    public static void main(String[] args) {
        StudentType[] types = StudentType.values();
        for(StudentType type: types){
            int index = type.ordinal();
            String name = type.name();

            System.out.println(String.format("name: %s message:%s", name, type.getMessage()));
        }
    }
}
